import * as types from '../mutation-types'
const state = {
    reCallNum: ''
}

const getters = {
    reCallNum: () => state.reCallNum

}

const actions = {
    fun_reCallNum({ commit }, reCallNum) {
        commit(types.RE_CALL_NUMBER, reCallNum)
        var changeBombBtn = Iframe.contentWindow.document.getElementById("ifly-softphone")
        myframe.window.fn.remakeCall(changeBombBtn, reCallNum)
    },
    setRecallName({ commit }, reCallNum) {
        commit(types.RE_CALL_NUMBER, reCallNum)
    }

}
const mutations = {
    [types.RE_CALL_NUMBER](state, reCallNum) {
        state.reCallNum = reCallNum
            // $('#Iframe').contents().find("#phone-dial-num").val(state.reCallNum);
            //  document.getElementById('Iframe').contentWindow.document.getElementById('phone-dial-num').value='123456';

    },

}
export default {
    state,
    getters,
    actions,
    mutations
}